package vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String sex;
	private Date birthday;
	private String academy;
	private String major;
	private Integer theclass;
	private Integer grade;
	private Integer year;
	private Date endate;
	private String phone;
	private String password;
	private String email;
	private Set selectCourses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Student() {
	}

	public Student(Long id, String name, String sex, Date birthday,
			String academy, String major, Integer theclass, Integer grade,
			Integer year, Date endate, String phone, String password,
			String email) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.academy = academy;
		this.major = major;
		this.theclass = theclass;
		this.grade = grade;
		this.year = year;
		this.endate = endate;
		this.phone = phone;
		this.password = password;
		this.email = email;
	
	}

	/** minimal constructor */
	public Student(String name, String sex, String academy, String major,
			Integer theclass, Integer grade, String password) {
		this.name = name;
		this.sex = sex;
		this.academy = academy;
		this.major = major;
		this.theclass = theclass;
		this.grade = grade;
		this.password = password;
	}

	/** full constructor */
	public Student(String name, String sex, Date birthday, String academy,
			String major, Integer theclass, Integer grade, Integer year,
			Date endate, String phone, String password, String email,
			Set selectCourses) {
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.academy = academy;
		this.major = major;
		this.theclass = theclass;
		this.grade = grade;
		this.year = year;
		this.endate = endate;
		this.phone = phone;
		this.password = password;
		this.email = email;
		this.selectCourses = selectCourses;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAcademy() {
		return this.academy;
	}

	public void setAcademy(String academy) {
		this.academy = academy;
	}

	public String getMajor() {
		return this.major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public Integer getTheclass() {
		return this.theclass;
	}

	public void setTheclass(Integer theclass) {
		this.theclass = theclass;
	}

	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getYear() {
		return this.year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Date getEndate() {
		return this.endate;
	}

	public void setEndate(Date endate) {
		this.endate = endate;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set getSelectCourses() {
		return this.selectCourses;
	}

	public void setSelectCourses(Set selectCourses) {
		this.selectCourses = selectCourses;
	}

}